package com.xebest.web.mapper.write;

import com.xebest.web.form.XeVenAfterSaleCheckForm;
import com.xebest.web.form.XeVenAfterSaleDelForm;
import com.xebest.web.model.XeVenOrderRefundEntity;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * 退款单相关mapper
 *
 * @author chenjing
 */
@Repository
public interface XeVenOrderRefundWriteMapper {

    /**
     * 插入退款单
     *
     * @author chenjing
     */
    int insert(XeVenOrderRefundEntity record);

    /**
     * 更新退款单信息
     *
     * @author chenjing
     */
    int updateByOrderRefundInfo(XeVenOrderRefundEntity record);

    /**
     * 批量插入退款单信息
     *
     * @author chenjing
     */
    int insertAllOrderRefund(List<Map<String, Object>> refundList);

    /**
     * 批量审核退款单
     *
     * @author chenjing
     */
    int batchOrderRefundList(XeVenAfterSaleCheckForm form);

    /**
     * 批量删除退款单
     *
     * @author chenjing
     */
    int delRefundList(XeVenAfterSaleDelForm form);

    /**
     * 根据orderid删除差异退款单
     *
     * @author chenjing
     */
    int delRefundByOrderId(Map map);

}